package com.joy.web.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joy.common.model.vo.RoleVO;
import com.joy.web.admin.entity.Role;
import com.joy.web.base.service.IBaseService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yjzhao
 * @since 2019-09-16
 */
public interface IRoleService extends IBaseService<Role> {

    List<Role> findAllRoleList() throws Exception;

    /**
     * @Description 分页查询
     * @param dataTablePage
     * @param roleVO
     * @return
     * @Author yjzhao
     * @Date 2019/9/16 13:38
     **/
    IPage<Role> findRoleListPage(Page<Role> dataTablePage, RoleVO roleVO) throws Exception;

    /**
     * @Description 更新
     * @param role
     * @return
     * @Author yjzhao
     * @Date 2019/9/16 13:48
     **/
    boolean updateRole(RoleVO role) throws Exception;

    /**
     * @Description 保存
     * @param role
     * @return
     * @Author yjzhao
     * @Date 2019/9/16 14:39
     **/
    boolean save(RoleVO role);
}
